
package com.contractmodule.bean;

import com.contractmodule.dao.TbBackSectionDAO;
import com.contractmodule.dao.TbDispatchListDAO;
import com.contractmodule.dao.TbProjectStateDAO;
import com.usersmodule.bean.TbUsers;
import com.usersmodule.dao.TbUsersDAO;

public class TbDispatchListProjectBackSectionMiddle implements java.io.Serializable {

    private int dispatchListProjectBackSectionMiddle;

    private String dispatchListCode;
    private TbDispatchList tbDispatchList;

    private int projectStateId;
    private TbProjectState tbProjectState;
    
    private int BackSectionId;
    private TbBackSection tbBackSection;
    
    
    private int userId;
    private TbUsers tbUsers;
    private String createTime;

    public int getDispatchListProjectBackSectionMiddle(){
        return dispatchListProjectBackSectionMiddle;
    }

    public void setDispatchListProjectBackSectionMiddle(int dispatchListProjectBackSectionMiddle){
        this.dispatchListProjectBackSectionMiddle = dispatchListProjectBackSectionMiddle;
    }

    public TbDispatchList getTbDispatchList() {
		return tbDispatchList;
	}

	public void setTbDispatchList(TbDispatchList tbDispatchList) {
		this.tbDispatchList = tbDispatchList;
	}

	public String getDispatchListCode(){
        return dispatchListCode;
    }
    
    public void setDispatchListCode(String dispatchListCode){
        this.dispatchListCode = dispatchListCode;
        this.tbDispatchList=new TbDispatchListDAO().getTbDispatchListByDispatchListCode(dispatchListCode);
    }

    public int getProjectStateId(){
        return projectStateId;
    }
    
    public TbProjectState getTbProjectState() {
		return tbProjectState;
	}

	public void setTbProjectState(TbProjectState tbProjectState) {
		this.tbProjectState = tbProjectState;
	}

	public void setProjectStateId(int projectStateId){
        this.projectStateId = projectStateId;
        this.tbProjectState=new TbProjectStateDAO().getTbProjectStateByProjectStateId(projectStateId);
    }

    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
        this.tbUsers=new TbUsersDAO().getTbUsersByUserId(userId);
    }

    public TbUsers getTbUsers() {
		return tbUsers;
	}

	public void setTbUsers(TbUsers tbUsers) {
		this.tbUsers = tbUsers;
	}

	public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }


    public TbDispatchListProjectBackSectionMiddle(){
    }
        public TbDispatchListProjectBackSectionMiddle(String dispatchListCode,int projectStateId,int userId){
        this.dispatchListCode = dispatchListCode;
        this.projectStateId = projectStateId;
        this.userId = userId;
    }
    public TbDispatchListProjectBackSectionMiddle(int dispatchListProjectBackSectionMiddle,String dispatchListCode,int projectStateId,int userId){
        this.dispatchListProjectBackSectionMiddle = dispatchListProjectBackSectionMiddle;
        this.dispatchListCode = dispatchListCode;
        this.projectStateId = projectStateId;
        this.userId = userId;
    }

	public int getBackSectionId() {
		return BackSectionId;
	}

	public void setBackSectionId(int backSectionId) {
		BackSectionId = backSectionId;
		this.tbBackSection = new TbBackSectionDAO().getTbBackSectionByBackSectionId(backSectionId);
	}

	public TbBackSection getTbBackSexion() {
		return tbBackSection;
	}

	public void setTbBackSexion(TbBackSection tbBackSection) {
		this.tbBackSection = tbBackSection;
	}
}

